package BookManager.operation;

import BookManager.Book;
import BookManager.BookDao;

import java.util.List;

public class DisplayOperation implements IOperation {
    @Override
    public void work() {
        BookDao bookDao=new BookDao();
        List<Book> books=bookDao.findBook();
        for(Book book : books){
            System.out.println(book);
        }
        System.out.println("显示书籍完毕");
    }
}
